package com.hermeneute.fsa;

import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IProjectNature;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IResourceChangeEvent;
import org.eclipse.core.resources.IResourceChangeListener;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;

public class FSANature implements IProjectNature {
	IProject project;
	IResourceChangeListener rcl = new IResourceChangeListener (){

		public void resourceChanged(IResourceChangeEvent event) {
			IResource resource = event.getResource();
			if (resource.getFileExtension().equals("fsa")) {
				System.out.println(resource+" changed");
			}
		}};
		
	public void configure() throws CoreException {
		System.out.println("configuration");
	}

	public void deconfigure() throws CoreException {
		System.out.println("deconfiguration");
	}

	public IProject getProject() {
		System.out.println("get "+project);
		return null;
	}

	public void setProject(IProject p) {
		project = p;
		System.out.println("set "+project);
	}

}
